From d3be8a6ca1aa9312cc01e780a2fea56ab8ec12b4 Mon Sep 17 00:00:00 2001 From: Jimi Xenidis Date: Wed, 9 Aug 2006 15:38:37 -0400 Subject: [PATCH] [POWERPC][TOOLS] fix header so libaio builds Signed-off-by: Jimi Xenidis Signed-off-by: Hollis Blanchard --- tools/libaio/src/syscall-ppc.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) mode change 100644 => 100755 tools/libaio/src/syscall-ppc.h diff --git a/tools/libaio/src/syscall-ppc.h b/tools/libaio/src/syscall-ppc.h old mode 100644 new mode 100755 index ca70dd2092..435513e799 --- a/tools/libaio/src/syscall-ppc.h +++ b/tools/libaio/src/syscall-ppc.h @@ -1,3 +1,6 @@ +#include +#include + #define __NR_io_setup 227 #define __NR_io_destroy 228 #define __NR_io_getevents 229 @@ -9,7 +12,7 @@ * "sc; bnslr" sequence) and CR (where only CR0.SO is clobbered to signal * an error return status). */ - +#ifndef __syscall_nr #define __syscall_nr(nr, type, name, args...) \ unsigned long __sc_ret, __sc_err; \ { \ @@ -37,6 +40,7 @@ } \ if (__sc_err & 0x10000000) return -((int)__sc_ret); \ return (type) __sc_ret +#endif #define __sc_loadargs_0(name, dummy...) \ __sc_0 = __NR_##name -- 2.30.2